package satir.cell;

import satir.card.Card;
import satir.card.Deck;
import satir.player.Player;

/**
 * The Class EventCell.
 * 
 * @version 2.0 March 2012
 * @author Chris Chan
 */
public class EventCell extends DrawCardCell {

	/**
	 * Instantiates a new event cell.
	 *
	 * @param width the width
	 * @param height the height
	 * @param borderHorizontal the border horizontal
	 * @param borderVertical the border vertical
	 * @param deck the deck
	 */
	public EventCell(int width, int height, char borderHorizontal,
			char borderVertical, Deck deck) {
		super(width, height, borderHorizontal, borderVertical,"Event" ,deck);
	}

	/* (non-Javadoc)
	 * @see stair.cell.Cell#cellAction(stair.player.Player)
	 */
	public void cellAction(Player target) {
		Card eventCard = deck.drawCard();
		eventCard.activateCard(target);
	}
}